package edu.zut.cs.software.module.warehouse.domain;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import edu.zut.cs.software.person.admin.domain.Admin;
import edu.zut.cs.software.teach.Base.domain.BaseEntity;
import edu.zut.cs.software.teach.Base.domain.BaseTreeEntity;

@Entity
@Table(name="T_WAREHOUSECATEGORY")
@NamedQueries({@NamedQuery(name="WarehouseCategory.getRoot",query="select m from WarehouseCategory m where m.parent is null")})

public class WarehouseCategory extends BaseTreeEntity<WarehouseCategory,Long> {
	private static final long serialVersionUID = -4376674977047164142L;
/**
 * get number 
 */
String number;
/**
 * get shelfid
 */
String shelfid;
/**
 * get date
 */
String data;
@OneToMany(mappedBy="warehousecategory",cascade = CascadeType.REMOVE, fetch = FetchType.EAGER)
List<Warehouse> warehouse;

public String getNumber() {
	return number;
}
public void setNumber(String number) {
	this.number = number;
}
public String getShelfid() {
	return shelfid;
}
public void setShelfid(String shelfid) {
	this.shelfid = shelfid;
}
public String getData() {
	return data;
}
public void setData(String data) {
	this.data = data;
}

public static long getSerialversionuid() {
	return serialVersionUID;
}

	}
	

